package com.qhit.Dao;

import com.qhit.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description: NewSsm
 * Created by WuHuaSen .
 * Created Date:  2022/3/29 19:58
 * Version:  V1.0
 */
public interface StudentDao {
    //添加
    public int InsertStudent(Student student);

    //删除
    public int DeleteStudent(int StuId);

    //修改
    public int updataStudent(Student student);

    //查询
    public List<Student> SelectStudent();
    //根据主键查询学生信息
    public Student SelectStudentById(@Param("sid") int sid);
    //分页查询
    public List<Student> SelectStudentByLimit(@Param("Start")int Start,@Param("Pageage")int Pageage);
    //添加操作，主键回填
    public int InsertStudentReturnId(Student student);
}
